#ifndef GL3EVENT_H_
#define GL3EVENT_H_

#ifdef __cplusplus
extern "C" {
#endif

	typedef enum 
	{
		glfEventKeyUp=1,
		glfEventKeyDown,
		glfEventMouse
	}glfEventType;

	typedef struct 
	{
		int type;
		//int state;
		int scancode;
		//int sym;
		//int mod;
		//int unicode;
	}glfEventKey;

	typedef struct
	{
			int type;
			int x, y;
			int dx, dy;
	}glfEventMouse_t;

	typedef union
	{
		int type;
		glfEventKey key;
		glfEventMouse_t mouse;
	}glfEvent;

	int glfPopEvent( glfEvent *e );
	int glfPushEvent( glfEvent *e );
	int glfDoEvents();

#ifdef __cplusplus
}
#endif

#endif